﻿using System;
using CrystalDecisions.CrystalReports.Engine;

namespace ContractManagementSystem
{
    public partial class ReportClient : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            LoadReportClient();
        }
        /// <summary>
        /// Function LoadReportClient
        /// </summary>
        private void LoadReportClient()
        {
            var reportDocument = new ReportDocument();
            reportDocument.Load(Server.MapPath("CrystalReportClient.rpt"));
            reportDocument.SetDatabaseLogon("fresher14_g2", "12345678", @"10.16.102.151", "fresher14_g2");
            ClientCrystalReportViewer.ReportSource = reportDocument;
        }
    }
}
